<template>
  <div>
    <TypeNav />
    <ListContainer />
    <TodayRecommend />
    <Rank />
    <Like />
    <Floor v-for="floor in floorList" :key="floor.id" :floor="floor" />
    <Brand />
  </div>
</template>

<script>
import Brand from './components/Brand'
import Floor from './components/Floor'
import Like from './components/Like'
import ListContainer from './components/ListContainer'
import Rank from './components/Rank'
import TodayRecommend from './components/TodayRecommend'
import { getfloorList } from '@/api'
export default {
  name: 'Home',
  components: {
    Brand,
    Floor,
    Like,
    ListContainer,
    Rank,
    TodayRecommend,
  },
  data() {
    return {
      floorList: [],
    }
  },
  mounted() {
    this.floorlistGet()
  },
  methods: {
    async floorlistGet() {
      let re = await getfloorList()
      this.floorList = re
      console.log(re)
    },
  },
}
</script>

<style lang="less" scoped></style>
